cmake_minimum_required(VERSION 3.12)
project(wxWidgets)

set(CMAKE_CXX_STANDARD 14)
set(INC_DIR include)
set(LINK_DIR lib)

aux_source_directory(src DIR_SRC)
aux_source_directory(src/demo DIR_DEMO)
aux_source_directory(src/snack DIR_SNACK)
aux_source_directory(src/thread DIR_THREAD)
aux_source_directory(src/socket DIR_SOCKET)
aux_source_directory(src/media DIR_MEDIA)
aux_source_directory(src/tetris DIR_TETRIS)
aux_source_directory(src/samples/animate DIR_SAMPLES_ANIMATE)
include_directories(${INC_DIR})
link_directories(${LINK_DIR})
add_executable(wxWidgets  ${DIR_SRC} ${DIR_DEMO}
        ${DIR_SNACK} ${DIR_THREAD} ${DIR_SOCKET}
        ${DIR_SAMPLES_ANIMATE} ${DIR_MEDIA} ${DIR_TETRIS})
target_link_libraries(wxWidgets
        wxbase312u_gcc810_x64.dll
        wxbase312u_net_gcc810_x64.dll
        wxbase312u_xml_gcc810_x64.dll
        wxmsw312u_adv_gcc810_x64.dll
        wxmsw312u_aui_gcc810_x64.dll
        wxmsw312u_core_gcc810_x64.dll
        wxmsw312u_gl_gcc810_x64.dll
        wxmsw312u_html_gcc810_x64.dll
        wxmsw312u_media_gcc810_x64.dll
        wxmsw312u_propgrid_gcc810_x64.dll
        wxmsw312u_ribbon_gcc810_x64.dll
        wxmsw312u_richtext_gcc810_x64.dll
        wxmsw312u_stc_gcc810_x64.dll
        wxmsw312u_webview_gcc810_x64.dll
        wxmsw312u_xrc_gcc810_x64.dll)